local ____lualib = base.tsc
local __TS__TypeReference = ____lualib.__TS__TypeReference
local __TS__Class = ____lualib.__TS__Class
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
local __TS__SuperTypeArgumentsFuncWrapper = ____lualib.__TS__SuperTypeArgumentsFuncWrapper
local __TS__New = ____lualib.__TS__New
local __TS__Class2 = ____lualib.__TS__Class2
Point = base.tsc.CLASSES.Point or __TS__Class2("Point")
Unit = base.tsc.CLASSES.Unit or __TS__Class2("Unit")
YPR旋转 = base.tsc.CLASSES.YPR旋转 or __TS__Class2("YPR旋转")
EffectParamShared = base.tsc.CLASSES.EffectParamShared or __TS__Class2("EffectParamShared")
EffectParam = base.tsc.CLASSES.EffectParam or __TS__Class2("EffectParam")
Target = base.tsc.CLASSES.Target or __TS__Class2("Target")
ScreenPos = base.tsc.CLASSES.ScreenPos or __TS__Class2("ScreenPos")
Actor = base.tsc.CLASSES.Actor or __TS__Class2("Actor")
TriggerEvent = base.tsc.CLASSES.TriggerEvent or __TS__Class2("TriggerEvent")
TriggerParamTable = base.tsc.CLASSES.TriggerParamTable or __TS__Class2("TriggerParamTable")
Player = base.tsc.CLASSES.Player or __TS__Class2("Player")
Skill = base.tsc.CLASSES.Skill or __TS__Class2("Skill")
Buff = base.tsc.CLASSES.Buff or __TS__Class2("Buff")
Timer = base.tsc.CLASSES.Timer or __TS__Class2("Timer")
Item = base.tsc.CLASSES.Item or __TS__Class2("Item")
Trigger = base.tsc.CLASSES.Trigger or __TS__Class2("Trigger")
IEventNotify = base.tsc.CLASSES.IEventNotify or __TS__Class2("IEventNotify")
Present = base.tsc.CLASSES.Present or __TS__Class2("Present")
Array = base.tsc.CLASSES.Array or __TS__Class2("Array")
local ____exports = {}
local ____script = require("@smallcard_inventory.main")
local smallcard_inventory = ____script.smallcard_inventory
local ____script = require("@smallcard_mail.main")
local smallcard_mail = ____script.smallcard_mail
local ____script = require("@defaultui.main")
local defaultui = ____script.defaultui
local ____script = require("@lib_common_ai.main")
local lib_common_ai = ____script.lib_common_ai
local ____script = require("@lib_control.main")
local lib_control = ____script.lib_control
local ____script = require("@smallcard_conversation.main")
local smallcard_conversation = ____script.smallcard_conversation
____exports.tiandimigong_p81b = {}
local tiandimigong_p81b = ____exports.tiandimigong_p81b
do
    tiandimigong_p81b.创建Toast = function(____, Toast文案)
        local Toast面板 = nil
        local Toast文字 = nil
        local ToastPage = nil
        ToastPage = base.gui_new("ToastPage")
        Toast文字 = base.gui_get_part_as(
            __TS__TypeReference(_OBJ__gui_ctrl_label, {}),
            ToastPage,
            "toast文字"
        )
        Toast面板 = base.gui_get_part_as(
            __TS__TypeReference(_OBJ__gui_ctrl_panel, {}),
            ToastPage,
            "toast面板"
        )
        Toast文字.text = Toast文案
        base.timer_wait(
            2,
            function(计时器)
                Toast面板.layout.relative[2] = -100
                Toast面板.show = false
            end
        )
        base.timer_wait(
            2,
            function(计时器)
                base.gui_destory(ToastPage)
            end
        )
    end
    tiandimigong_p81b.控制台点击 = __TS__Class()
    local 控制台点击 = tiandimigong_p81b.控制台点击
    控制台点击.name = "控制台点击"
    __TS__ClassExtends(
        控制台点击,
        TriggerEvent,
        function()
            return {}
        end
    )
    function 控制台点击.prototype.____constructor(self, obj, 控制台按钮参数)
        __TS__SuperTypeArgumentsFuncWrapper(控制台点击, {}, TriggerEvent.prototype.____constructor)(self)
        self.obj = obj
        self.控制台按钮参数 = 控制台按钮参数
        self.event_name = "控制台点击"
        self.autoForward = true
    end
end
____exports.validator = {}
local validator = ____exports.validator
do
    ---
    -- @noSelf
    validator.validator_38385052 = function(移动器Id, 流逝时间, 弹道单位, 施法者单位, 目标单位, 发射点, 目标点)
        local 半径 = base.point_distance(发射点, 目标点) * 0.5
        local 初始角度 = base.point_angle(目标点, 发射点)
        local 圆心 = base.point_move(目标点, 初始角度, 半径)
        local 当前位置 = base.point_move(圆心, 初始角度 + 流逝时间 * 100, 半径)
        base.set_unit_location_and_height(弹道单位, 当前位置, 150)
    end
    ---
    -- @noSelf
    validator.validator_85459057 = function(ctrl, mouse_btn_id)
        local 新变量 = nil
        log.debug("按下的按钮参数为", ctrl.CustomString)
        ctrl.scale = 0.9
        base.timer_wait(
            0.1,
            function(计时器)
                ctrl.scale = 1
            end
        )
        base.send_custom_event(__TS__New(____exports.tiandimigong_p81b.控制台点击, {}, base.game, ctrl.CustomString))
        ____exports.tiandimigong_p81b:创建Toast(ctrl.CustomString)
    end
    ---
    -- @noSelf
    validator.validator_32974356 = function(ctrl, mouse_btn_id)
        ctrl.scale = 0.9
        base.timer_wait(
            0.1,
            function(计时器)
                ctrl.scale = 1
            end
        )
    end
    local function init_validator_0(self)
        local data = nil
        data = base.eff.cache("$$default_units_ts.unit.火龙.MoverFunction")
        if data then
            data.FunctionClient_UI = validator.validator_38385052
        end
    end
    init_validator_0(nil)
end
return ____exports
